#ifndef QLSPROGRESSBAR_H
#define QLSPROGRESSBAR_H

#include <QObject>
#include <QSlider>
#include <QEvent>
#include <QMouseEvent>

class QLsProgressBar : public QSlider
{
	Q_OBJECT
public:
	QLsProgressBar(QWidget *parent = nullptr);

signals:
	/* 跳转(微秒) */
	void sigSeek(qint64 pos);

protected:
	/* 事件过滤器 */
	bool eventFilter(QObject *watched, QEvent *event);
	/* 鼠标按下事件 */
	void mousePressEvent(QMouseEvent *event);
	/* 鼠标释放事件 */
	void mouseReleaseEvent(QMouseEvent *event);
};

#endif // QLSPROGRESSBAR_H
